.PHONY : default
default:
	@echo "  test"
	@echo "  mock"

.PHONY : test
test:
	cd src/event/ && go test -v
	cd src/socket/ && go test -v
	cd src/process/socks && go test -v

.PHONY : mock
mock:
	mockgen -source=src/socket/server.go -destination=src/socket/server_mock.go -package=socket
	mockgen -source=src/socket/client.go -destination=src/socket/client_mock.go -package=socket
	mockgen -source=src/event/process.go -destination=src/event/process_mock.go -package=event
	mockgen -source=src/process/socks/authentication.go -destination=src/process/socks/authentication_mock.go -package=socks
	mockgen net Conn  > src/socket/conn_mock.go
